import 'dart:io';

void main() {
  print('开始');
  getgoodsList().then((value) {
    print(value);
  });
  print('结束');
}

Future<String> getgoodsList() {
  return Future(() {
    sleep(new Duration(seconds: 3));
    return '获取商品列表成功';
  });
}
